import Link from 'next/link'

export default function DashboardLayout({ children }: { children: React.ReactNode }) {
    return (
        <section style={{ display: 'flex' }}>
            <nav style={{ width: '200px', borderRight: '1px solid #ccc', padding: '1rem' }}>
                <h2>仪表盘</h2>
                <ul>
                    <li><Link href="/dashboard">主页</Link></li>
                    <li><Link href="/dashboard/settings">设置</Link></li>
                </ul>
            </nav>
            <div style={{ flex: 1, padding: '1rem' }}>
                {children}
            </div>
        </section>

    )
}